#ifndef __MODEL_H__
#define __MODEL_H__

#include "../Header/Header.h"
#include "Vertex.h"
#include "Shader.h"

class Model
{
private:
	Vertex* m_VBOData;
	GLuint* m_IBOData;
	__UINT32 m_VBOID;
	__UINT32 m_IBOID;
	__UINT32 m_iVBOs;
	__UINT32 m_iIBOs;
public:
	Model();
	~Model();
	__INT32 LoadModel(__UINT32 iVertices, Vertex* aVertices, __UINT32 iIndices, GLuint* aIndices, __BOOL isReleaseData = true);
	__INT32 LoadModel(char* strFileNFG, __BOOL isReleaseData = true);
	Vertex* GetVBOData();
	GLuint* GetIBOData();
	__UINT32 GetVBOID(){ return m_VBOID; }
	__UINT32 GetIBOID(){ return m_IBOID; }
	__UINT32 GetVertexCount(){ return m_iVBOs; }
	__UINT32 GetIndexCount(){ return m_iIBOs; }
	__INT32 Render(Shader* sha);
	__VOID Release();
};

#endif